<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>学生成绩管理系统</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link href='http://fonts.googleapis.com/css?family=Belgrano' rel='stylesheet' type='text/css'></link>
<!-- jQuery file -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery.tabify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var $ = jQuery.noConflict();
$(function() {
$('#tabsmenu').tabify();
$(".toggle_container").hide(); 
$(".trigger").click(function(){
	$(this).toggleClass("active").next().slideToggle("slow");
	return false;
});
});
function onvalidate(){
   var name = document.getElementById("name").value;
	
	if(name.length<=0){
	alert("姓名不能为空");
    return false;
	}
	
	var birth = document.getElementById("birthid").value;
	
	if(birth<=0){
	alert("出生日期不能为空");
	  return false;
	}

  
		
	var number = document.getElementById("number").value;
	
	if(number.length!=12){
	  alert("对不起，你输入的学号不合法");
	    return false;
	  
	}
  

   var saddress = document.getElementById("saddress").value;
	if(saddress==null&&saddress==""){
	  alert("对不起，籍贯不能为空");
	   return false;
	}
	
}
</script>
</head>
<body>
<div id="panelwrap">
  	
	<div class="header">
    <div class="title"><s:property value="#session.exitstu.name"/></div>
    
    <div class="header_right">欢迎<s:property value="#session.exitstu.name"/>,  <a href="${pageContext.request.contextPath}/login_loginout.action" class="logout">注销</a> </div>
    
    <div class="menu">
    <ul>
    <li><a href="#" class="selected">信息管理</a></li>
    <li><a href="#">选课管理</a></li>
    <li><a href="#">成绩管理</a></li>
    <li><a href="#">创新学分管理</a></li>
    <li><a href="#">活动成绩管理</a></li>
   <!--  <li><a href="#">Options</a></li>
    <li><a href="#">Admin settings</a></li>--> 
    <li><a href="#">帮助</a></li>
    </ul>
    </div>
    
    </div>
          
    <div class="center_content">  
 
    <div id="right_wrap">
    <div id="right_content">             
    <h2>信息显示</h2> 
                    
    <s:form action="student_addS.action" method="post" enctype="multipart/form-data"
       
    onsubmit="return onvalidate()">                 

   
    <thead>
    
        <table height="300px" width="800px" border="0" align="center">
     <tr >
               <td>姓名</td>
               <td><input type="text" id="name" name="name"/></td>
           </tr>
             <tr>
               <td>性别</td>
               <td>  <s:radio list="#{'男':'男生','女':'女生' }"
                name="sex" value="女" ></s:radio>
               </td>
           </tr>
             <tr>
               <td>出生日期</td>
               <td><input type="text" id="birthid" name="birth"/></td>
               <td>按格式yyyy-mm-dd</td>
           </tr>
           <tr>
               <td>学号</td>
               <td><input type="text" id="number" name="number"/></td>
                  <td>长度必须为12位</td>
           </tr>
              <tr>
               <td>班级</td>
               <td><input type="text" id="sclass" name="sclass"/></td>
               <td>按格式计13-3</td>
           </tr>
               <tr>
               <td>籍贯</td>
               <td><input type="text"  id="saddress" name="saddress"/></td>
             </tr>
            <tr>
               <td>入学日期</td>
               <td><input type="text" id="esdate"  name="esdate"/></td>
              
                <td>按格式yyyy-mm-dd</td>
             </tr>
             <tr>
               <td>系</td>
               <td>
                  <select name="sdpet">
                     <option>计算机科学技术</option>
                    <option>网络工程</option>
                    <option>软件工程</option>
                  </select>
               </td>
             </tr>
             <tr>
                <td>
                                                      图片上传
                </td>
                 <td>
                     <s:file name="upload" lable="选择文件"></s:file>
                 </td>
             </tr>
             <tr>
                <td rowspan="2" align="center">
                   <input type="submit" value="确定"  onclick="return checkForm()" /> 
             </td>
             </tr>
         
 </thead>
 </s:form>

</table>

	
        </div> 
      
     </div>          
     </div><!-- end of right content-->
            
                    
    <div class="sidebar" id="sidebar">
    <h2>学生信息管理</h2>
    
        <ul>
            <li><a href="${pageContext.request.contextPath}/index.action?page=1"  class="selected">信息查看</a></li>
            <li><a href="${pageContext.request.contextPath}/student_addStudent.action">信息添加</a></li>
            <li><a href="#">信息修改</a></li>
            <li><a href="#">信息删除</a></li>
            <!--  <li><a href="#">Templates</a></li>
            <li><a href="#">Clients</a></li>-->
        </ul>
        
    <h2>选课管理</h2>
    
        <ul>
            <li><a href="${pageContext.request.contextPath}/course_findAllCourse.action?page=1">课程查看</a></li>
            <li><a href="${pageContext.request.contextPath}/course_addCourse.action">课程添加</a></li>
            <li><a href="#">课程修改</a></li>
            <li><a href="#">课程删除</a></li>
        </ul> 
        
    <h2>创新学分管理</h2>
    
        <ul>
            <li><a href="#">创新学分查看</a></li>
            <li><a href="#">创新学分添加</a></li>
            <li><a href="#">创新学分修改</a></li>
            <li><a href="#">创新学分删除</a></li>
        </ul>   
         
    <h2>活动管理</h2> 
           <ul>
            <li><a href="#">活动学分查看</a></li>
            <li><a href="#">活动学分添加</a></li>
            <li><a href="#">活动学分修改</a></li>
            <li><a href="#">活动学分删除</a></li>
        </ul>   
    
    </div>             
    
    
    <div class="clear"></div>
    </div> <!--end of center_content-->
    
    <div class="footer">
      <
</div>

</div>

    	
</body>
</html>